package com.bianguo.zsd.SpringBootDemo.exception;

import com.bianguo.zsd.SpringBootDemo.enums.ResultEnum;

public class GlobalException extends RuntimeException {

    private Integer status;

    public GlobalException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.status = resultEnum.getCode();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
